package hellotabwidget.pack;

import android.widget.TextView;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;

public class ListActivity extends Activity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);		
        setContentView(R.layout.list_layout);
        TextView tv = (TextView) findViewById(R.id.tvSqlinfo);
        EconomyDb info = new EconomyDb(this);
        info.open();
        String data = info.getData();      
        info.close(); 
        tv.setText(data);
    }

    @Override
    public void onResume() {
        super.onResume();
    	TextView tv = (TextView) findViewById(R.id.tvSqlinfo);
        EconomyDb info = new EconomyDb(this);
        info.open();
        String data = info.getData();
        info.close();
        tv.setText(data);
    }

}
